Inheritance diagram for TMCSMPArray< T >:

Public Member Functions | |
| TMCSMPArray () | |
| virtual | ~TMCSMPArray () |
| void | SetStackDepth (int32 depth) |
| void | SetAverageElemSpace (int32 elemSpace) |
| TMCArray< T > & | GetArray (TMCSMPArrayRequest< T > &request) |
Protected Member Functions | |
| void | PopArray () |
Static Protected Member Functions | |
| static void | FreeArray (void **privData) |
Protected Attributes | |
| int32 | fStackDepth |
| int32 | fAverageElemSpace |
| TMCLocalStorage * | fTLSArray |
| TMCLocalStorage * | fStackIndex |
Friends | |
| class | TMCSMPArrayRequest< T > |
It behaves like a stack. So a function that uses an SMPArray can be recursively called.
Usage:
TMCSMPArrayRequest< _TYPE_ > request;
TMCArray< _TYPE_ >& myArray = fArrayVolumeRec.GetArray( request );
Prelated class: TMCArray
|
|||||||||
|
Construt a dynamic array (TMCArray) SMP-friendly. That is to say, the array will not be allocated on the stack. But all the Threads will have their own. |
|
|||||||||
|
Destructor. Remove the TLS. Note: the memory used by the arrays is freed when the thread dies. |
|
||||||||||
|
This is to remove the all allocated memory when the thread die |
|
||||||||||
|
This is the way to get a reference to an TMCArray
|
|
|||||||||
|
Pop the last gotten array |
|
||||||||||
|
[Optional] Can be used to optimize memory allocation by setting directly the the size of the array.
|
|
||||||||||
|
[Optional] Can be used to optimize memory allocation by setting directly the number of wanted recursion.
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
1.4.5